package xin.petstore.framework.web.validator;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import javax.validation.Constraint;
import javax.validation.Payload;

@Target({java.lang.annotation.ElementType.FIELD, java.lang.annotation.ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy={MoneyValidator.class})
public @interface Money
{
  public abstract String message();

  public abstract Class<?>[] groups();

  public abstract Class<? extends Payload>[] payload();
}
